from curl_cffi import requests
import time

strap = int(time.time()*1000)
print(strap)
url = ("https://b2b.baidu.com/s/a?ajax=1&csrf_token=1468c8ca0371d70d0de1e383d09c5a90&logid=578841437231023460&fid=42260441%2C1761826732526&_=1761826882829&q=%E5%B0%8F%E9%BE%99%E8%99%BE%E5%BA%97%E5%A2%99%E7%BA%B8&o=0&p=2&mk=%E5%85%A8%E9%83%A8%E7%BB%93%E6%9E%9C&f=[]&s=30&adn=0&resType=product&fn=%7B%22select_param1%22:%22%E5%93%81%E7%89%8C%22,%22select_param2%22:%22%E6%9D%90%E8%B4%A8%22,%22select_param3%22:%22%E5%8A%9F%E8%83%BD%22,%22select_param4%22:%22%E8%8A%B1%E8%89%B2%22,%22select_param5%22:%22%E6%AC%BE%E5%BC%8F%22,%22select_param6%22:%22%E5%B7%A5%E8%89%BA%22,%22select_param7%22:%22%E5%B1%82%E6%AC%A1%E6%9E%84%E6%88%90%22,%22select_param8%22:%22%E5%A4%96%E8%A7%82%22,%22select_param9%22:%22%E8%80%90%E6%B4%97%E6%93%A6%E6%80%A7%22,%22select_param10%22:%22%E5%9B%BE%E6%A1%88%22,%22select_param11%22:%22%E5%88%B6%E4%BD%9C%E6%96%B9%E6%B3%95%22,%22select_param12%22:%22%E9%A3%8E%E6%A0%BC%22%7D&pageShift=1")

headers = {
'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36'
}
response = requests.get(url,headers=headers)

print(response.status_code)
content = response.json()

list = content['data']['productList']
print(len(list))
for item in list:
       name = item['fullName']
       pic = item['picUrl']
       print(name,pic)